package cn.springcloud.alibaba.pms.feign;

import cn.springcloud.alibaba.core.base.Result;
import cn.springcloud.alibaba.pms.dto.SkuInfoDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "pms-server", contextId = "sku")
public interface SkuFeignClient {

	/**
	 * 获取商品库存单元信息
	 */
	@GetMapping("/app-api/v1/sku/{skuId}/info")
	Result<SkuInfoDTO> getSkuInfo(@PathVariable Long skuId);
}
